/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.juani.test.service.persistence;

import com.juani.test.model.Client;

import com.liferay.portal.service.persistence.BasePersistence;

/**
 * The persistence interface for the client service.
 *
 * <p>
 * Caching information and settings can be found in <code>portal.properties</code>
 * </p>
 *
 * @author Juan Martin Ruiz
 * @see ClientPersistenceImpl
 * @see ClientUtil
 * @generated
 */
public interface ClientPersistence extends BasePersistence<Client> {
	/*
	 * NOTE FOR DEVELOPERS:
	 *
	 * Never modify or reference this interface directly. Always use {@link ClientUtil} to access the client persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
	 */

	/**
	* Caches the client in the entity cache if it is enabled.
	*
	* @param client the client
	*/
	public void cacheResult(com.juani.test.model.Client client);

	/**
	* Caches the clients in the entity cache if it is enabled.
	*
	* @param clients the clients
	*/
	public void cacheResult(java.util.List<com.juani.test.model.Client> clients);

	/**
	* Creates a new client with the primary key. Does not add the client to the database.
	*
	* @param clientId the primary key for the new client
	* @return the new client
	*/
	public com.juani.test.model.Client create(long clientId);

	/**
	* Removes the client with the primary key from the database. Also notifies the appropriate model listeners.
	*
	* @param clientId the primary key of the client
	* @return the client that was removed
	* @throws com.juani.test.NoSuchClientException if a client with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public com.juani.test.model.Client remove(long clientId)
		throws com.juani.test.NoSuchClientException,
			com.liferay.portal.kernel.exception.SystemException;

	public com.juani.test.model.Client updateImpl(
		com.juani.test.model.Client client, boolean merge)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the client with the primary key or throws a {@link com.juani.test.NoSuchClientException} if it could not be found.
	*
	* @param clientId the primary key of the client
	* @return the client
	* @throws com.juani.test.NoSuchClientException if a client with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public com.juani.test.model.Client findByPrimaryKey(long clientId)
		throws com.juani.test.NoSuchClientException,
			com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the client with the primary key or returns <code>null</code> if it could not be found.
	*
	* @param clientId the primary key of the client
	* @return the client, or <code>null</code> if a client with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public com.juani.test.model.Client fetchByPrimaryKey(long clientId)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns all the clients where firstName = &#63;.
	*
	* @param firstName the first name
	* @return the matching clients
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<com.juani.test.model.Client> findByFirstName(
		java.lang.String firstName)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns a range of all the clients where firstName = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param firstName the first name
	* @param start the lower bound of the range of clients
	* @param end the upper bound of the range of clients (not inclusive)
	* @return the range of matching clients
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<com.juani.test.model.Client> findByFirstName(
		java.lang.String firstName, int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns an ordered range of all the clients where firstName = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param firstName the first name
	* @param start the lower bound of the range of clients
	* @param end the upper bound of the range of clients (not inclusive)
	* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
	* @return the ordered range of matching clients
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<com.juani.test.model.Client> findByFirstName(
		java.lang.String firstName, int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the first client in the ordered set where firstName = &#63;.
	*
	* @param firstName the first name
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching client
	* @throws com.juani.test.NoSuchClientException if a matching client could not be found
	* @throws SystemException if a system exception occurred
	*/
	public com.juani.test.model.Client findByFirstName_First(
		java.lang.String firstName,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.juani.test.NoSuchClientException,
			com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the first client in the ordered set where firstName = &#63;.
	*
	* @param firstName the first name
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching client, or <code>null</code> if a matching client could not be found
	* @throws SystemException if a system exception occurred
	*/
	public com.juani.test.model.Client fetchByFirstName_First(
		java.lang.String firstName,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the last client in the ordered set where firstName = &#63;.
	*
	* @param firstName the first name
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching client
	* @throws com.juani.test.NoSuchClientException if a matching client could not be found
	* @throws SystemException if a system exception occurred
	*/
	public com.juani.test.model.Client findByFirstName_Last(
		java.lang.String firstName,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.juani.test.NoSuchClientException,
			com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the last client in the ordered set where firstName = &#63;.
	*
	* @param firstName the first name
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching client, or <code>null</code> if a matching client could not be found
	* @throws SystemException if a system exception occurred
	*/
	public com.juani.test.model.Client fetchByFirstName_Last(
		java.lang.String firstName,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the clients before and after the current client in the ordered set where firstName = &#63;.
	*
	* @param clientId the primary key of the current client
	* @param firstName the first name
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the previous, current, and next client
	* @throws com.juani.test.NoSuchClientException if a client with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public com.juani.test.model.Client[] findByFirstName_PrevAndNext(
		long clientId, java.lang.String firstName,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.juani.test.NoSuchClientException,
			com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns all the clients where lastName = &#63;.
	*
	* @param lastName the last name
	* @return the matching clients
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<com.juani.test.model.Client> findByLastName(
		java.lang.String lastName)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns a range of all the clients where lastName = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param lastName the last name
	* @param start the lower bound of the range of clients
	* @param end the upper bound of the range of clients (not inclusive)
	* @return the range of matching clients
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<com.juani.test.model.Client> findByLastName(
		java.lang.String lastName, int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns an ordered range of all the clients where lastName = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param lastName the last name
	* @param start the lower bound of the range of clients
	* @param end the upper bound of the range of clients (not inclusive)
	* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
	* @return the ordered range of matching clients
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<com.juani.test.model.Client> findByLastName(
		java.lang.String lastName, int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the first client in the ordered set where lastName = &#63;.
	*
	* @param lastName the last name
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching client
	* @throws com.juani.test.NoSuchClientException if a matching client could not be found
	* @throws SystemException if a system exception occurred
	*/
	public com.juani.test.model.Client findByLastName_First(
		java.lang.String lastName,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.juani.test.NoSuchClientException,
			com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the first client in the ordered set where lastName = &#63;.
	*
	* @param lastName the last name
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching client, or <code>null</code> if a matching client could not be found
	* @throws SystemException if a system exception occurred
	*/
	public com.juani.test.model.Client fetchByLastName_First(
		java.lang.String lastName,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the last client in the ordered set where lastName = &#63;.
	*
	* @param lastName the last name
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching client
	* @throws com.juani.test.NoSuchClientException if a matching client could not be found
	* @throws SystemException if a system exception occurred
	*/
	public com.juani.test.model.Client findByLastName_Last(
		java.lang.String lastName,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.juani.test.NoSuchClientException,
			com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the last client in the ordered set where lastName = &#63;.
	*
	* @param lastName the last name
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching client, or <code>null</code> if a matching client could not be found
	* @throws SystemException if a system exception occurred
	*/
	public com.juani.test.model.Client fetchByLastName_Last(
		java.lang.String lastName,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the clients before and after the current client in the ordered set where lastName = &#63;.
	*
	* @param clientId the primary key of the current client
	* @param lastName the last name
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the previous, current, and next client
	* @throws com.juani.test.NoSuchClientException if a client with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public com.juani.test.model.Client[] findByLastName_PrevAndNext(
		long clientId, java.lang.String lastName,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.juani.test.NoSuchClientException,
			com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns all the clients where email = &#63;.
	*
	* @param email the email
	* @return the matching clients
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<com.juani.test.model.Client> findByEmail(
		java.lang.String email)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns a range of all the clients where email = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param email the email
	* @param start the lower bound of the range of clients
	* @param end the upper bound of the range of clients (not inclusive)
	* @return the range of matching clients
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<com.juani.test.model.Client> findByEmail(
		java.lang.String email, int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns an ordered range of all the clients where email = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param email the email
	* @param start the lower bound of the range of clients
	* @param end the upper bound of the range of clients (not inclusive)
	* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
	* @return the ordered range of matching clients
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<com.juani.test.model.Client> findByEmail(
		java.lang.String email, int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the first client in the ordered set where email = &#63;.
	*
	* @param email the email
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching client
	* @throws com.juani.test.NoSuchClientException if a matching client could not be found
	* @throws SystemException if a system exception occurred
	*/
	public com.juani.test.model.Client findByEmail_First(
		java.lang.String email,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.juani.test.NoSuchClientException,
			com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the first client in the ordered set where email = &#63;.
	*
	* @param email the email
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching client, or <code>null</code> if a matching client could not be found
	* @throws SystemException if a system exception occurred
	*/
	public com.juani.test.model.Client fetchByEmail_First(
		java.lang.String email,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the last client in the ordered set where email = &#63;.
	*
	* @param email the email
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching client
	* @throws com.juani.test.NoSuchClientException if a matching client could not be found
	* @throws SystemException if a system exception occurred
	*/
	public com.juani.test.model.Client findByEmail_Last(
		java.lang.String email,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.juani.test.NoSuchClientException,
			com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the last client in the ordered set where email = &#63;.
	*
	* @param email the email
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching client, or <code>null</code> if a matching client could not be found
	* @throws SystemException if a system exception occurred
	*/
	public com.juani.test.model.Client fetchByEmail_Last(
		java.lang.String email,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the clients before and after the current client in the ordered set where email = &#63;.
	*
	* @param clientId the primary key of the current client
	* @param email the email
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the previous, current, and next client
	* @throws com.juani.test.NoSuchClientException if a client with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public com.juani.test.model.Client[] findByEmail_PrevAndNext(
		long clientId, java.lang.String email,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.juani.test.NoSuchClientException,
			com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns all the clients where phone = &#63;.
	*
	* @param phone the phone
	* @return the matching clients
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<com.juani.test.model.Client> findByPhone(
		java.lang.String phone)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns a range of all the clients where phone = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param phone the phone
	* @param start the lower bound of the range of clients
	* @param end the upper bound of the range of clients (not inclusive)
	* @return the range of matching clients
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<com.juani.test.model.Client> findByPhone(
		java.lang.String phone, int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns an ordered range of all the clients where phone = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param phone the phone
	* @param start the lower bound of the range of clients
	* @param end the upper bound of the range of clients (not inclusive)
	* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
	* @return the ordered range of matching clients
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<com.juani.test.model.Client> findByPhone(
		java.lang.String phone, int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the first client in the ordered set where phone = &#63;.
	*
	* @param phone the phone
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching client
	* @throws com.juani.test.NoSuchClientException if a matching client could not be found
	* @throws SystemException if a system exception occurred
	*/
	public com.juani.test.model.Client findByPhone_First(
		java.lang.String phone,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.juani.test.NoSuchClientException,
			com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the first client in the ordered set where phone = &#63;.
	*
	* @param phone the phone
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching client, or <code>null</code> if a matching client could not be found
	* @throws SystemException if a system exception occurred
	*/
	public com.juani.test.model.Client fetchByPhone_First(
		java.lang.String phone,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the last client in the ordered set where phone = &#63;.
	*
	* @param phone the phone
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching client
	* @throws com.juani.test.NoSuchClientException if a matching client could not be found
	* @throws SystemException if a system exception occurred
	*/
	public com.juani.test.model.Client findByPhone_Last(
		java.lang.String phone,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.juani.test.NoSuchClientException,
			com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the last client in the ordered set where phone = &#63;.
	*
	* @param phone the phone
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching client, or <code>null</code> if a matching client could not be found
	* @throws SystemException if a system exception occurred
	*/
	public com.juani.test.model.Client fetchByPhone_Last(
		java.lang.String phone,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the clients before and after the current client in the ordered set where phone = &#63;.
	*
	* @param clientId the primary key of the current client
	* @param phone the phone
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the previous, current, and next client
	* @throws com.juani.test.NoSuchClientException if a client with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public com.juani.test.model.Client[] findByPhone_PrevAndNext(
		long clientId, java.lang.String phone,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.juani.test.NoSuchClientException,
			com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns all the clients where movil = &#63;.
	*
	* @param movil the movil
	* @return the matching clients
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<com.juani.test.model.Client> findByMovil(
		java.lang.String movil)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns a range of all the clients where movil = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param movil the movil
	* @param start the lower bound of the range of clients
	* @param end the upper bound of the range of clients (not inclusive)
	* @return the range of matching clients
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<com.juani.test.model.Client> findByMovil(
		java.lang.String movil, int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns an ordered range of all the clients where movil = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param movil the movil
	* @param start the lower bound of the range of clients
	* @param end the upper bound of the range of clients (not inclusive)
	* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
	* @return the ordered range of matching clients
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<com.juani.test.model.Client> findByMovil(
		java.lang.String movil, int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the first client in the ordered set where movil = &#63;.
	*
	* @param movil the movil
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching client
	* @throws com.juani.test.NoSuchClientException if a matching client could not be found
	* @throws SystemException if a system exception occurred
	*/
	public com.juani.test.model.Client findByMovil_First(
		java.lang.String movil,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.juani.test.NoSuchClientException,
			com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the first client in the ordered set where movil = &#63;.
	*
	* @param movil the movil
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching client, or <code>null</code> if a matching client could not be found
	* @throws SystemException if a system exception occurred
	*/
	public com.juani.test.model.Client fetchByMovil_First(
		java.lang.String movil,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the last client in the ordered set where movil = &#63;.
	*
	* @param movil the movil
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching client
	* @throws com.juani.test.NoSuchClientException if a matching client could not be found
	* @throws SystemException if a system exception occurred
	*/
	public com.juani.test.model.Client findByMovil_Last(
		java.lang.String movil,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.juani.test.NoSuchClientException,
			com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the last client in the ordered set where movil = &#63;.
	*
	* @param movil the movil
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching client, or <code>null</code> if a matching client could not be found
	* @throws SystemException if a system exception occurred
	*/
	public com.juani.test.model.Client fetchByMovil_Last(
		java.lang.String movil,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the clients before and after the current client in the ordered set where movil = &#63;.
	*
	* @param clientId the primary key of the current client
	* @param movil the movil
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the previous, current, and next client
	* @throws com.juani.test.NoSuchClientException if a client with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public com.juani.test.model.Client[] findByMovil_PrevAndNext(
		long clientId, java.lang.String movil,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.juani.test.NoSuchClientException,
			com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns all the clients.
	*
	* @return the clients
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<com.juani.test.model.Client> findAll()
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns a range of all the clients.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param start the lower bound of the range of clients
	* @param end the upper bound of the range of clients (not inclusive)
	* @return the range of clients
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<com.juani.test.model.Client> findAll(int start,
		int end) throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns an ordered range of all the clients.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param start the lower bound of the range of clients
	* @param end the upper bound of the range of clients (not inclusive)
	* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
	* @return the ordered range of clients
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<com.juani.test.model.Client> findAll(int start,
		int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Removes all the clients where firstName = &#63; from the database.
	*
	* @param firstName the first name
	* @throws SystemException if a system exception occurred
	*/
	public void removeByFirstName(java.lang.String firstName)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Removes all the clients where lastName = &#63; from the database.
	*
	* @param lastName the last name
	* @throws SystemException if a system exception occurred
	*/
	public void removeByLastName(java.lang.String lastName)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Removes all the clients where email = &#63; from the database.
	*
	* @param email the email
	* @throws SystemException if a system exception occurred
	*/
	public void removeByEmail(java.lang.String email)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Removes all the clients where phone = &#63; from the database.
	*
	* @param phone the phone
	* @throws SystemException if a system exception occurred
	*/
	public void removeByPhone(java.lang.String phone)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Removes all the clients where movil = &#63; from the database.
	*
	* @param movil the movil
	* @throws SystemException if a system exception occurred
	*/
	public void removeByMovil(java.lang.String movil)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Removes all the clients from the database.
	*
	* @throws SystemException if a system exception occurred
	*/
	public void removeAll()
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the number of clients where firstName = &#63;.
	*
	* @param firstName the first name
	* @return the number of matching clients
	* @throws SystemException if a system exception occurred
	*/
	public int countByFirstName(java.lang.String firstName)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the number of clients where lastName = &#63;.
	*
	* @param lastName the last name
	* @return the number of matching clients
	* @throws SystemException if a system exception occurred
	*/
	public int countByLastName(java.lang.String lastName)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the number of clients where email = &#63;.
	*
	* @param email the email
	* @return the number of matching clients
	* @throws SystemException if a system exception occurred
	*/
	public int countByEmail(java.lang.String email)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the number of clients where phone = &#63;.
	*
	* @param phone the phone
	* @return the number of matching clients
	* @throws SystemException if a system exception occurred
	*/
	public int countByPhone(java.lang.String phone)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the number of clients where movil = &#63;.
	*
	* @param movil the movil
	* @return the number of matching clients
	* @throws SystemException if a system exception occurred
	*/
	public int countByMovil(java.lang.String movil)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the number of clients.
	*
	* @return the number of clients
	* @throws SystemException if a system exception occurred
	*/
	public int countAll()
		throws com.liferay.portal.kernel.exception.SystemException;
}